/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-04-01
 * Time: 17:18
 */
public class Animal {
    int legNumber;
    String name;
    String gender;
    int age;
    float weight;

    void eat() {
        System.out.println(name+"在吃饭");
    }

    void sleep() {
        System.out.println(name+"在睡觉");
    }
}